# -*- coding: utf-8 -*-

def triangles():
	current=[0,1,2,1,0]
	current.
	n=0
	while(n<10):
	  	yield current[1:-1]
	  	current=[x+y for x in current[0:-1] for y in current[1:]]
	  	n+=1
n = 0
for t in triangles():
    print(t)
    n = n + 1
    if n == 10:

        break